LL PWR Constants

Low Power Mode Selection

group PWR_LL_EC_LOW_POWER_MODE_SELECTION

Defines

LL_PWR_STOP0_MODE 0U

STOP0 mode

LL_PWR_STOP1_MODE PWR_PMCR_LPMS_0

STOP1 mode

LL_PWR_STANDBY_MODE PWR_PMCR_LPMS_1

STANDBY mode

PWR SRAM1 Content retention in stop mode

group PWR_LL_EC_SRAM1_STOP_CONTENTS_RETENTION

Defines

LL_PWR_SRAM1_STOP_RETENTION PWR_PMCR_SRAM1SO

SRAM1 retention in stop mode

PWR SRAM2 Content retention in stop mode

group PWR_LL_EC_SRAM2_STOP_CONTENTS_RETENTION

Defines

LL_PWR_SRAM2_PAGE1_STOP_RETENTION PWR_PMCR_SRAM2_1_SO

SRAM2 Page 1 retention in stop mode

LL_PWR_SRAM2_PAGE2_STOP_RETENTION PWR_PMCR_SRAM2_2_SO

SRAM2 Page 2 retention in stop mode

LL_PWR_SRAM2_STOP_RETENTION (PWR_PMCR_SRAM2_2_SO | PWR_PMCR_SRAM2_1_SO)

SRAM2 retention in stop mode

PWR Wake Up Pin

group PWR_LL_EC_WAKEUP_PIN

Defines

LL_PWR_WAKEUP_PIN_1 PWR_WUCR_WUPEN1

Wakeup pin 1 enable

LL_PWR_WAKEUP_PIN_2 PWR_WUCR_WUPEN2

Wakeup pin 2 enable

LL_PWR_WAKEUP_PIN_3 PWR_WUCR_WUPEN3

Wakeup pin 3 enable

LL_PWR_WAKEUP_PIN_4 PWR_WUCR_WUPEN4

Wakeup pin 4 enable

LL_PWR_WAKEUP_PIN_5 PWR_WUCR_WUPEN5

Wakeup pin 5 enable

LL_PWR_WAKEUP_PIN_6 PWR_WUCR_WUPEN6

Wakeup pin 6 enable

LL_PWR_WAKEUP_PIN_7 PWR_WUCR_WUPEN7

Wakeup pin 7 enable

LL_PWR_WAKEUP_PIN_ALL (0x7FU)

Wakeup all pin enable

Wakeup Pins pull configuration

group PWR_LL_EC_WAKEUP_PIN_PULL

Defines

LL_PWR_WAKEUP_PIN_PULL_NO 0x00000000UL

Configure Wake-Up pin in no pull

LL_PWR_WAKEUP_PIN_PULL_UP 0x00000001UL

Configure Wake-Up pin in pull Up

LL_PWR_WAKEUP_PIN_PULL_DOWN 0x00000002UL

Configure Wake-Up pin in pull Down

Wakeup Pins polarity

group PWR_LL_EC_WAKEUP_PIN_POLARITY

Defines

LL_PWR_WAKEUP_PIN_POLARITY_HIGH 0x00000000UL

Wakeup pin polarity high

LL_PWR_WAKEUP_PIN_POLARITY_LOW 0x00000001UL

Wakeup pin polarity low

Privilege items

group PWR_LL_EC_IO_RETENTION

Defines

LL_PWR_IO_RETENTION_GPIO PWR_IORETR_IORETEN

GPIO retention in Standby Mode

LL_PWR_IO_RETENTION_JTAGIO PWR_IORETR_JTAGIORETEN

JTAGIO retention in Standby Mode

LL_PWR_IO_RETENTION_ALL (PWR_IORETR_IORETEN | PWR_IORETR_JTAGIORETEN)

All IO retention in Standby Mode

Privilege items

group PWR_LL_EC_PRIVILEGE_ITEM

Defines

LL_PWR_PRIV_ITEM_ALL PWR_PRIVCFGR_PRIV

All privilege items

Privilege attribute

group PWR_LL_EC_PRIVILEGE_ATTRIBUTE

Defines

LL_PWR_ATTR_NPRIV 0U

Non-privileged attribute

LL_PWR_ATTR_PRIV 1U

Privileged attribute